<?php
namespace app\wx\model;

use think\Model;

class Book extends Model {
  public function getImageAttr($value) {
    $prefix = config('setting.img_prefix');
    return ($prefix.$value);
  }
}